<html>
<head>
<title>Video</title>
</head>
<body>
    <video autoplay controls></video>
	<script>
	window.URL=window.URL || window.webkitURL;
	navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia 
	|| navigator.mozGetUserMedia;
	
	navigator.getUserMedia({audio:true, video:true},function(vid){
	document.querySelector('video').src=window.URL.createObjectURL(vid);
	});
	</script>
	</body>
	</html>